import request from '@/request';

// 登录
export const authLogin = (data) => {
	return request('/wechat/user/auth/login', data, 'post');
}

export const getPhoneNumber = (data) => {
	return request('/wechat/user/getPhoneNumber', data);
}

// 退出登录
export const authLogout = () => {
	return request('/wechat/user/auth/logout', {}, 'post');
}

// 获取个人信息
export const fetchUserInfo = () => {
	return request('/wechat/user/me');
}

export const updateUserInfo = (data) => {
	return request('/wechat/user/update', data, 'post');
}